import request from "@/utils/request";
// 楼宇列表
export function getCardList(params) {
  return request({
    url: "/parking/card/list",
    params,
  });
}
/**
 * 新增月卡
 * @data
 * @returns
 */
export function createCardAPI(data) {
  return request({
    url: "/parking/card",
    method: "POST",
    data,
  });
}
/**
 * 获取月卡详情
 * @data
 * @returns
 */
export function getCardDetailAPI(id) {
  return request({
    url: `/parking/card/detail/${id}`,
  });
}
// 编辑接口
export function updateCardAPI(data) {
  return request({
    url: "/parking/card/edit",
    method: "PUT",
    data,
  });
}
/**
 * 删除月卡
 * @param {*} id
 * @returns
 */
export function delCardAPI(id) {
  return request({
    url: `/parking/card/${id}`,
    method: "DELETE",
  });
}
/**
 * 批量删除月卡
 * @param {*} ids
 * @returns
 */
export function delCardsAPI(ids) {
  return request({
    url: `/parking/card/${ids}`,
    method: "DELETE",
  });
}
